package edu.sctu.practice.class02.hujie.cgs.practice02.test07;

/**
 * Created by hj on 2015/10/22.
 */
public  class wuMingFen {
    String theMa;
    int quantity;
    boolean likeSoup;
    public wuMingFen() {
        this("酸辣", 2, true);
    }

    public wuMingFen(String theMa, int quantity) {
        this.theMa = theMa;
        this.quantity = quantity;
    }

    public wuMingFen(String theMa, int quantity, boolean likeSoup) {
        this.theMa = theMa;
        this.quantity = quantity;
        this.likeSoup = likeSoup;
    }

    public void check(){
        System.out.println("面码：" + theMa + "\n 粉的份量：" + quantity + "\n 是否带汤：" + likeSoup);

    }
    public static void main(String[] args) {


        wuMingFen wuMingFen1 = new wuMingFen();
        wuMingFen wuMingFen2 = new wuMingFen("牛肉", 3, true);
        wuMingFen wuMingFen3 = new wuMingFen("牛肉", 2);

        wuMingFen1.check();
        wuMingFen2.check();
        wuMingFen3.check();


    }
}
